<template>
  <Admin activeName="users">
    <Table border :data="users" :columns="columns"></Table>
  </Admin>
</template>

<script>
import Admin from '@/layout/Admin'
export default {
  components: { Admin },
  data () {
    return {
      users: [
        { id: 1, name: 'zzf' },
        { id: 2, name: 'zzf' },
        { id: 3, name: 'zzf' },
        { id: 4, name: 'zzf' },
        { id: 5, name: 'zzf' },
        { id: 6, name: 'zzf' },
        { id: 7, name: 'zzf' },
        { id: 8, name: 'zzf' },
        { id: 9, name: 'zzf' },
        { id: 10, name: 'zzf' },
      ],
      columns: [
        {
          key: 'id',
          title: 'ID'
        },
        {
          key: 'name',
          title: '用户名'
        },
        {
          key: 'action',
          title: '操作'
        },
      ]
    }
  }
}
</script>
